<?php

class PassportServiceAction extends Action {
	public function _initialize() {
		$this->UserCenter = D('Passport/UserCenter');
	}

	public function login($username,$password ,$regType = 1) {
		return $this->UserCenter->login($username,$password,$regType);
	}

	public function checkEmail() {

	}

	/**
	 * 用户中心新用户
	 * @param  string $username [用户名]
	 * @param  string $nikename [昵称]
	 * @param  string $password [密码]
	 * @param  string $mobile   [电话]
	 * @return integer          [返回值]
	 */
	public function register($username,$nikename,$password,$mobile = '') {
		 $this->UserCenter->register($username,$nikename,$password,$mobile = '');
	}

	public function getUserInfo() {

	}

	public function checkUserName() {

	}

	public function updateUserInfo() {

	}
}